﻿using Ecommerce.API.Application.Command.Eunmcommand;
using Ecommerce.Domain.Eunm;
using Ecommerce.Services.Eunm;
using MediatR;

namespace Ecommerce.API.Application.CommandHandlers.EunmHander
{
    public class EunmlistCommandHandler : IRequestHandler<EunmlistCommand, object>
    {
        private readonly IEunmServices services;

        public EunmlistCommandHandler(IEunmServices services)
        {
            this.services = services;
        }

        public Task<object> Handle(EunmlistCommand request, CancellationToken cancellationToken)
        {
            return services.Eunmlist();
        }
    }
}
